/**
Zeke Elder - zbe@andrew.cmu.edu
Amal Chemmany - achemman@andrew.cmu.edu
Nishant Kumar - nkumar1@andrew.cmu.edu
15-637
4/2/2012
 **/

package edu.cmu.fithub.actions;

import javax.servlet.http.HttpServletRequest;

import org.hibernate.Session;

import edu.cmu.fithub.controller.Action;
import edu.cmu.fithub.db.DBHelper;
import edu.cmu.fithub.db.bean.User;

public class ShowInviteAction extends Action {

	public ShowInviteAction() {
	}

	public String getName() {
		return "showInvite.do";
	}

	public String perform(HttpServletRequest request) {

		User user = (User) request.getSession().getAttribute("user");
		String groupId = request.getParameter("groupId");
		Session dbSession = DBHelper.getSessionFactory().openSession();
		request.setAttribute("groupId", groupId);
		return "invite.jsp";
	}
}
